﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Init {
    import flash.events.*;
    import Engine.Init.*;
    import Modules.stats.experiments.*;
    import L10n.*;

    public class ExperimentsInit extends InitializationAction {

        public static const INIT_ID:String = "ExperimentsInit";

        public function ExperimentsInit(){
            super(INIT_ID);
            Global.experimentManager = new ExperimentManager();
        }
        override public function execute():void{
            Global.experimentManager.init();
            if (Global.experimentManager.getVariant(ExperimentDefinitions.EXPERIMENT_CTTC_CASH_ENABLE_GATE) == ExperimentDefinitions.CTTC_CASH_ENABLED){
                LocaleHelper.localSetting.sns.cash_enable = true;
            } else {
                LocaleHelper.localSetting.sns.cash_enable = false;
            };
            dispatchEvent(new Event(Event.COMPLETE));
        }

    }
}//package Init 
